package cn.south.campus.business.model.bo;

/**
 * <p>
 *
 * </p>
 *
 * @author chow
 * @since 2023/3/14 16:41
 */
public class LoginContext {

    private static final ThreadLocal<LoginInfo> local = new ThreadLocal<>();


    public static LoginInfo getContext() {
        return local.get();
    }

    public static void setContext(LoginInfo loginInfo) {
        local.set(loginInfo);
    }

    public static void remove() {
        local.remove();
    }
}
